@import '../index.less';
.custom-top-nav {
    .element;
    overflow: hidden;
    height: 42px;
    color: #000;
    background-color: #fff;
    box-sizing: border-box;
    border-bottom: 1px solid #d7d7d7;
    cursor: pointer;
    .bind-fx-txt {
        .bind-fx-txt;
        justify-content: center;
    }
    .nav-content {
        position: relative;
        text-align: center;
        height: 100%;
        .nav-content-left {
            position: absolute;
            top: 50%;
            transform: translate(0, -50%);
            left: 10px;
            display: flex;
            box-sizing: border-box;
            .icon-image {
                width: 14px;
                height: 14px;
            }
        }
        .nav-content-title {
            display: flex;
            align-items: center;
            height: 100%;
            justify-content: center;
        }
        &.type-one {
            .nav-content-title {
                width: 100px;
                margin: 0 auto;
                & > span {
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                }
            }
        }
        &.type-two {
            .nav-content-title {
                .search-wrap {
                    display: block;
                    border-radius: 32px;
                    width: 188px;
                    height: 28px;
                    line-height: 28px;
                    background: #f6f6f6;
                    color: #999;
                    font-size: 12px;
                    margin-right: 40px;
                    text-align: left;
                    padding-left: 10px;
                    & > span {
                        font-size: 12px;
                        margin-left: 10px;
                    }
                }
            }
        }
        &.type-three {
            .nav-content-left {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 72px;
                height: 26px;
                border-radius: 26px;
                border: 1px solid #eaeaea;
                .icon-wrap {
                    display: inline-flex;
                }
                .split-line {
                    display: inline-block;
                    position: relative;
                    vertical-align: middle;
                    font-size: 0;
                    margin: 0 9px 0 8px;
                    height: 15px;
                    width: 0;
                    border-right: 1px solid #eaeaea;
                }
            }
        }
        &.type-four {
            .nav-content-left {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 72px;
                height: 26px;
                border-radius: 26px;
                border: 1px solid #eaeaea;
                .icon-wrap {
                    display: inline-flex;
                }
                .split-line {
                    display: inline-block;
                    position: relative;
                    vertical-align: middle;
                    font-size: 0;
                    margin: 0 9px 0 8px;
                    height: 15px;
                    width: 0;
                    border-right: 1px solid #eaeaea;
                }
            }
            .nav-content-title {
                .search-wrap {
                    display: block;
                    border-radius: 32px;
                    width: 134px;
                    height: 28px;
                    line-height: 28px;
                    background: #f6f6f6;
                    color: #999;
                    font-size: 12px;
                    text-align: left;
                    padding-left: 10px;
                    & > span {
                        font-size: 12px;
                        margin-left: 10px;
                    }
                }
            }
        }
        &.type-five {
            .nav-content-title {
                & > div {
                    height: 23px;
                    line-height: 23px;
                    font-size: 12px;
                    &:first-child {
                        background: #2d8cf2;
                        border-radius: 100px 0 0 100px;
                        color: #fff;
                        padding: 0 12px 0 14px;
                    }
                    &:last-child {
                        background: #f2f2f2;
                        border-radius: 0 100px 100px 0;
                        color: #333;
                        padding: 0 14px 0 12px;
                    }
                }
            }
        }
    }
}